package com.changgou.order.controller;

import com.changgou.core.controller.AbstractCoreController;
import com.changgou.order.pojo.OrderConfig;
import com.changgou.order.service.OrderConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyipeng
 * @date 2021-06-26 17:00
 */
@RestController
@RequestMapping("/orderConfig")
@CrossOrigin
public class OrderConfigController extends AbstractCoreController<OrderConfig>{

    private OrderConfigService  orderConfigService;

    @Autowired
    public OrderConfigController(OrderConfigService  orderConfigService) {
        super(orderConfigService, OrderConfig.class);
        this.orderConfigService = orderConfigService;
    }
}
